import request from '@/utils/request'

// 分页查询日志列表
export function listSysLog(query) {
  return request({
    url: '/api/sysLog/list',
    method: 'get',
    params: query
  })
}

// 获取日志详情
export function getSysLog(id) {
  return request({
    url: `/api/sysLog/${id}`,
    method: 'get'
  })
}

// 删除日志
export function deleteSysLog(id) {
  return request({
    url: `/api/sysLog/${id}`,
    method: 'delete'
  })
}

// 批量删除日志
export function batchDeleteSysLog(ids) {
  return request({
    url: `/api/sysLog/batch/${ids}`,
    method: 'delete'
  })
}

// 清空日志
export function cleanSysLog() {
  return request({
    url: '/api/sysLog/clean',
    method: 'delete'
  })
}
